package com.jkchen.controller;

import com.jkchen.dao.UserDao;
import com.jkchen.pojo.User;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
public class ControllerTest {
    @Autowired
    UserDao userDao;
    @GetMapping("123")
    public List<User> print(){
        List<User> all = userDao.findUserByName("admin1");
        return all;
    }
}
